﻿@model ADShop.Models.Product

@{
    ViewBag.Title = "Details";
    Layout = "~/Areas/Admin/Views/Shared/_LayoutPage_Admin.cshtml";
}

<h2>Chi Tiết Sản Phẩm @Model.NameProduct</h2>

@*<fieldset>
    <legend>Product</legend>

    <div class="display-label">
        <b> @Html.DisplayNameFor(model => model.IDProduct)</b> : @Html.DisplayFor(model => model.IDProduct)
    </div>

    <div class="display-label">
        <b>@Html.DisplayNameFor(model => model.StatusProduct.NameStatus)</b> : @Html.DisplayFor(model => model.StatusProduct.NameStatus)
    </div>


    <div class="display-label">
        <b> @Html.DisplayNameFor(model => model.Category.NameCategory)</b> : @Html.DisplayFor(model => model.Category.NameCategory)
    </div>

    <div class="display-label">
        <b> @Html.DisplayNameFor(model => model.PromotionsProduct.IDPromotions)</b> : @Html.DisplayFor(model => model.PromotionsProduct.IDPromotions)

</div>
    <div class="display-label">
        <b>@Html.DisplayNameFor(model => model.Brand.BrandName)</b> : @Html.DisplayFor(model => model.Brand.BrandName)
    </div>


    <div class="display-label">
        <b>@Html.DisplayNameFor(model => model.NameProduct)</b> : @Html.DisplayFor(model => model.NameProduct)
    </div>


    <div class="display-label">
        <b> @Html.DisplayNameFor(model => model.Description)</b> : @Html.DisplayFor(model => model.Description)
    </div>


    <div class="display-label">
        <b>@Html.DisplayNameFor(model => model.TrialDay)</b> : @Html.DisplayFor(model => model.TrialDay)
    </div>

    <div class="display-label">
        <b>@Html.DisplayNameFor(model => model.ListedPrice)</b> : @Html.DisplayFor(model => model.ListedPrice)
    </div>


    <div class="display-label">
          <b>@Html.DisplayNameFor(model => model.PriceProduct)</b> : @Html.DisplayFor(model => model.PriceProduct)
    </div>


    <div class="display-label">
        <b>@Html.DisplayNameFor(model => model.Rewards)</b> : @Html.DisplayFor(model => model.Rewards)
    </div>


    <div class="display-label">
        <b> @Html.DisplayNameFor(model => model.ProductImage)</b> : <br /><img height="152" width="152" src="@Html.DisplayFor(model => model.ProductImage)" />
    </div>

    <div class="display-label">
        <b> @Html.DisplayNameFor(model => model.Active)</b> : @Html.DisplayFor(model => model.Active)
    </div>
</fieldset>*@
<div class="panel-body">
    <table class="table table-hover" id="sample-table-1">
        <thead>
            <tr>


                @*<th>@Html.DisplayNameFor(model => model.IDProduct)</th>
                <th>@Html.DisplayNameFor(model => model.IDStatus)</th>*@
                <th>@Html.DisplayNameFor(model => model.ProductImage)</th>
                <th>@Html.DisplayNameFor(model => model.IDCategory)</th>
                @*<th>@Html.DisplayNameFor(model => model.IDPromotions)</th>*@
                <th>@Html.DisplayNameFor(model => model.IDBrand)</th>
                <th>@Html.DisplayNameFor(model => model.NameProduct)</th>
                <th>@Html.DisplayNameFor(model => model.Description)</th>
                
                </tr>
          
        </thead>
        <tbody>
            <tr>
                <td>
                    <div class="editor-field">
                        @Html.Action("GetImages",Model.IDProduct )
                        @Html.ValidationMessageFor(model => model.ProductImage)
                    </div>
                </td>

                @*<td>
                    <div class="editor-field">
                        @Html.DisplayFor(model => model.IDProduct)
                        @Html.ValidationMessageFor(model => model.IDProduct)
                    </div>
                </td>

                <td>
                    <div class="editor-field">
                       @Html.DisplayFor(model => model.StatusProduct.NameStatus)
                        @Html.ValidationMessageFor(model => model.IDStatus)
                    </div>
                </td>*@
                <td>
                    <div class="editor-field">
                        <div class="editor-field">
                           @Html.DisplayFor(model => model.Category.NameCategory)
                            @Html.ValidationMessageFor(model => model.IDCategory)
                        </div>
                    </div>
                </td>
                @*<td>
                    <div class="editor-field">
                       @Html.DisplayFor(model => model.PromotionsProduct.IDPromotions)
                        @Html.ValidationMessageFor(model => model.IDPromotions)
                    </div>



                </td>*@
                <td>
                    <div class="editor-field">
                      @Html.DisplayFor(model => model.Brand.BrandName)
                        @Html.ValidationMessageFor(model => model.IDBrand)
                    </div>
                </td>
                <td>
                    <div class="editor-field">
                        @Html.DisplayFor(model => model.NameProduct)
                        @Html.ValidationMessageFor(model => model.NameProduct)
                    </div>
                </td>
                <td>
                    <div class="editor-field">
                        @Html.DisplayFor(model => model.Description)
                        @Html.ValidationMessageFor(model => model.Description)
                    </div>
                </td>
              
                </tr>
            

            <thead>
                <tr>
                    <th></th>
                    <th>@Html.DisplayNameFor(model => model.TrialDay)</th>
                    <th>@Html.DisplayNameFor(model => model.ListedPrice)</th>
                    <th>@Html.DisplayNameFor(model => model.PriceProduct)</th>
                    <th>@Html.DisplayNameFor(model => model.Rewards)</th>


                </tr>
                </thead>
                <tr>
                    <td></td>
                    <td>
                        <div class="editor-field">
                            @Html.DisplayFor(model => model.TrialDay)
                            @Html.ValidationMessageFor(model => model.TrialDay)
                        </div>
                    </td>
                    <td>
                        <div class="editor-field">
                            @Html.DisplayFor(model => model.ListedPrice)
                            @Html.ValidationMessageFor(model => model.ListedPrice)
                        </div>
                    </td>
                    <td>
                        <div class="editor-field">
                            @Html.DisplayFor(model => model.PriceProduct)
                            @Html.ValidationMessageFor(model => model.PriceProduct)
                        </div>
                    </td>
                    <td>
                    <div class="editor-field">
                        @Html.DisplayFor(model => model.Rewards)
                        @Html.ValidationMessageFor(model => model.Rewards)
                    </div>
                </td>



                </tr>

</tbody>
    </table>
</div>
<p>
    @Html.ActionLink("Edit", "Edit", new { id = Model.IDProduct }, new { @class = "label label-default" }) |
    @Html.ActionLink("Quay Lại Danh Sách Sản Phẩm", "Index", null, new { @class = "label label-default" })
</p>
